MyStandardIn
Reads text input. This is how you would define your input function if you were to name itMyStandardIn
:
SInt32 MyStandardIn (JMSessionRef session, char* buffer, SInt32 maxBufferLength);
session
- The session to receive the text input.
buffer
- The buffer to hold the input.
maxBufferLength
- The maximum length allowed by the buffer.
- function result
- The number of characters actually read (up to
maxBufferLength
) or -1 if an error occurred.DISCUSSION
When invoking the Java runtime environment usingJMOpenSession
, you must designate a callback function to direct any console input to the session.